package com.itcast.flowable.config;

import com.basic.flowable.service.FlowBusinessService;
import com.basic.flowable.service.FlowEngineService;
import com.basic.flowable.service.impl.FlowBusinessServiceImpl;
import com.basic.flowable.service.impl.FlowEngineServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zheng.zhang
 */
@Configuration
public class FlowableConfig {

    /**
     * 工作流业务接口
     *
     * @return 业务接口服务
     */
    @Bean
    public FlowBusinessService flowBusinessService() {
        return new FlowBusinessServiceImpl();
    }

    /**
     * 工作流引擎接口
     *
     * @return 引擎接口服务
     */
    @Bean
    public FlowEngineService flowEngineService() {
        return new FlowEngineServiceImpl();
    }
}
